import type { UserType } from "../models/user";

let currentUser: UserType | null = null;

export const setCurrentUserState = (user: UserType | null) => {
    currentUser = user;
};

export const getCurrentUserState = (): UserType | null => {
    return currentUser;
};